<%@taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>Edit bbs page</title>
    </head>
    <body>
        <h1>Edit bbs page</h1>
        <p>Here you can edit the existing bbs.</p>
        <p>${message}</p>
        <form:form method="POST" commandName="bbs" action="${pageContext.request.contextPath}/bbs/edit/${bbs.bid}.html">
            <table>
                <tbody>
                    <tr>
                        <td>Title:</td>
                        <td><form:input path="title" /></td>
                    </tr>
                    <tr>
                        <td>Keyword:</td>
                        <td><form:input path="keyword" /></td>
                    </tr>
                    <tr>
                        <td><input type="submit" value="Edit" /></td>
                        <td></td>
                    </tr>
                </tbody>
            </table>
        </form:form>

        <p><a href="${pageContext.request.contextPath}/index.html">Home page</a></p>
    </body>
</html>